package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2017/1/18.
 */
@Controller
public class Test {
    @RequestMapping("/show.html") @ResponseBody
    public String show(){
        return "helloworld";
    }


    @RequestMapping("/user.action") @ResponseBody
    public String user(){
        return "user reg";
    }
}
